How to improve this code that only uses the write function from libc

welcome to shbcf.ru